/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.jr2tecnologia.model;

import br.com.jr2tecnologia.model.entity.Page;
import br.com.jr2tecnologia.model.entity.Role;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.Local;

/**
 *
 * @author ronildo
 */

@Local
public interface RolePersistenceLocal {

    @PostConstruct
    void initialize();

    Role findById(Long id);

    Role findByName(String name);

    List<Role> list(Role role);

    List<Role> listAll();

    List<Page> listPagesOfRole(Role entity);

    void persist(Role entity);

    void remove(Role entity);

    void update(Role entity);

}
